<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Log in</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">    
    <link rel="stylesheet" href="/stylesheets/login-signup.css">
</head>
<body>
    <form action="/login" method="post">
        <h4 class="text-center"> Chatroom </h4>
        <% if (alertMessage) { %>
            <div class="alert alert-warning" role="alert">
                <%= alertMessage %>
            </div>
        <% } %>
        <div class="form-group">
            <label for="loginUsername">Username</label>
            <input type="text" name="username" id="loginUsername" class="form-control">            
        </div>
        <div class="form-group">
            <label for="loginPsd">Password</label>
            <input type="password" name="psd" id="loginPsd" class="form-control">
        </div>
        <button type="submit" class="btn btn-primary btn-block">Log in</button>
        <p class="mt-3 text-muted text-center"> Doesn't have an account? &nbsp;&nbsp;<a href="/signup">Go sign up!<a></p>
    </form>
</body>
</html>